package com.xzqwjw.taskmanager.activity;

import com.xzqwjw.taskmanager.R;
import com.xzqwjw.taskmanager.dao.PhotoDao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.Toast;

public class ActivitySetPhoto extends Activity {

  private String strDBFile = "";

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_setphoto);

    Intent objIT = getIntent();
    strDBFile = objIT.getStringExtra("DBFilePath");

    PhotoDao objPhoto = new PhotoDao(strDBFile);
    String strMsg = objPhoto.writeImageToDisk();
    Toast.makeText(getApplicationContext(), strMsg, Toast.LENGTH_LONG).show();
  }

}
